package cn.tedu._05mvcboot03.conmon.exception;

import cn.tedu._05mvcboot03.conmon.reponse.JsonResult;
import cn.tedu._05mvcboot03.conmon.reponse.StataCode;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;

@RestControllerAdvice
public class GlobalExceptionHandle {

    /*@ExceptionHandler
    public JsonResult handleMethodArgumentTypeMismatchException(MethodArgumentTypeMismatchException e) {

        return new JsonResult(StataCode.VALIDATED_ERROR, e.getMessage());
    }*/
    /*@ExceptionHandler
    public JsonResult handleNullPointerException(NullPointerException e) {
        return new JsonResult(StataCode.NOT_LOGIN);
    }*/
}
